package englishirregularverbs;

import java.util.List;

/**
  *
  * @author sorack
  */
public class IrregularVerb {

    private Integer id;
    private String simpleForm;
    private String simplePast;
    private String pastParticiple;
    private List<Translation> translations;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSimpleForm() {
        return simpleForm;
    }

    public void setSimpleForm(String simpleForm) {
        this.simpleForm = simpleForm;
    }

    public String getSimplePast() {
        return simplePast;
    }

    public void setSimplePast(String simplePast) {
        this.simplePast = simplePast;
    }

    public String getPastParticiple() {
        return pastParticiple;
    }

    public void setPastParticiple(String pastParticiple) {
        this.pastParticiple = pastParticiple;
    }

    public List<Translation> getTranslations() {
        return translations;
    }

    public void setTranslations(List<Translation> translations) {
        this.translations = translations;
    }

    public Translation getIdTranslation(Integer Id) {


        for (Translation translation : translations) {

            if (translation.getId() == Id) {
                return translation;
            }
        }
        return null;
    }
}
